home *** CD-ROM | disk | FTP | other *** search
/ Paparazzi!: Tales of Tinseltown / Paparazzi - Tales of Tinseltown (1995)(Activision)(Disc 1 of 2).iso / pprazia2.dir / 00474_Bitmap_StopBTN < prev    next >
Text File  |  1995-05-21  |  32KB  |  878 lines

  1. on startMovie
  2.   global gMoney, gIntegrity, gDayOfTheWeek, gDayOrNight, gOneOrTwo,¼
  3.  g19A, g18A,g01A,g11A,g02A, g15A, g13A, g06A, g09A, g08A, g05A, g03A, g25A, g22A,¼
  4.   gMags, Player1, Player2, Player3, Player4, Player5, Player6,¼
  5.  gCurrentPlayer,textTemp,gTheCDPath, whichPlayer, CDorHD, HDPathName, gReset, TheDrivePath
  6.   
  7.   set the exitlock to true
  8.  
  9.   --loads all the data from the text files
  10.   set gTheCDPath = "PPrazzi1:Assets:"
  11.   set gReset = ""
  12.   if CDorHD = "yes" then
  13.     
  14.     if objectP(textTemp) then textTemp(mDispose)
  15.     put fileIO(mNew, "read", HDPathName & "ACurPlyr.txt") into textTemp
  16.     put textTemp(mReadFile) into gCurrentPlayer
  17.     textTemp(mDispose)
  18.     
  19.     if objectP(textTemp) then textTemp(mDispose)
  20.     put fileIO(mNew, "read", HDPathName & "APlayer1.txt") into textTemp
  21.     put textTemp(mReadFile) into Player1
  22.     textTemp(mDispose)
  23.     
  24.     if objectP(textTemp) then textTemp(mDispose)
  25.     put fileIO(mNew, "read", HDPathName & "APlayer2.txt") into textTemp
  26.     put textTemp(mReadFile) into Player2
  27.     textTemp(mDispose)
  28.     
  29.     if objectP(textTemp) then textTemp(mDispose)
  30.     put fileIO(mNew, "read", HDPathName & "APlayer3.txt") into textTemp
  31.     put textTemp(mReadFile) into Player3
  32.     textTemp(mDispose)
  33.     
  34.     if objectP(textTemp) then textTemp(mDispose)
  35.     put fileIO(mNew, "read", HDPathName & "APlayer4.txt") into textTemp
  36.     put textTemp(mReadFile) into Player4
  37.     textTemp(mDispose)
  38.     
  39.     if objectP(textTemp) then textTemp(mDispose)
  40.     put fileIO(mNew, "read", HDPathName & "APlayer5.txt") into textTemp
  41.     put textTemp(mReadFile) into Player5
  42.     textTemp(mDispose)
  43.     
  44.     if objectP(textTemp) then textTemp(mDispose)
  45.     put fileIO(mNew, "read", HDPathName & "APlayer6.txt") into textTemp
  46.     put textTemp(mReadFile) into Player6
  47.     textTemp(mDispose)
  48.     
  49.   else
  50.     if objectP(textTemp) then textTemp(mDispose)
  51.     put fileIO(mNew, "read", the pathname & "ACurPlyr.txt") into textTemp
  52.     put textTemp(mReadFile) into gCurrentPlayer
  53.     textTemp(mDispose)
  54.     
  55.     if objectP(textTemp) then textTemp(mDispose)
  56.     put fileIO(mNew, "read", the pathname & "APlayer1.txt") into textTemp
  57.     put textTemp(mReadFile) into Player1
  58.     textTemp(mDispose)
  59.     
  60.     if objectP(textTemp) then textTemp(mDispose)
  61.     put fileIO(mNew, "read", the pathname & "APlayer2.txt") into textTemp
  62.     put textTemp(mReadFile) into Player2
  63.     textTemp(mDispose)
  64.     
  65.     if objectP(textTemp) then textTemp(mDispose)
  66.     put fileIO(mNew, "read", the pathname & "APlayer3.txt") into textTemp
  67.     put textTemp(mReadFile) into Player3
  68.     textTemp(mDispose)
  69.     
  70.     if objectP(textTemp) then textTemp(mDispose)
  71.     put fileIO(mNew, "read", the pathname & "APlayer4.txt") into textTemp
  72.     put textTemp(mReadFile) into Player4
  73.     textTemp(mDispose)
  74.     
  75.     if objectP(textTemp) then textTemp(mDispose)
  76.     put fileIO(mNew, "read", the pathname & "APlayer5.txt") into textTemp
  77.     put textTemp(mReadFile) into Player5
  78.     textTemp(mDispose)
  79.     
  80.     if objectP(textTemp) then textTemp(mDispose)
  81.     put fileIO(mNew, "read", the pathname & "APlayer6.txt") into textTemp
  82.     put textTemp(mReadFile) into Player6
  83.     textTemp(mDispose)
  84.   end if
  85.   
  86.   if value(gCurrentPlayer) = 1 then set WhichPlayer = Player1
  87.   if value(gCurrentPlayer) = 2 then set WhichPlayer = Player2
  88.   if value(gCurrentPlayer) = 3 then set WhichPlayer = Player3
  89.   if value(gCurrentPlayer) = 4 then set WhichPlayer = Player4
  90.   if value(gCurrentPlayer) = 5 then set WhichPlayer = Player5
  91.   if value(gCurrentPlayer) = 6 then set WhichPlayer = Player6 
  92.   
  93.   if value(gCurrentPlayer) = 0 then 
  94.     exit
  95.   else
  96.     LoadEmUp
  97.   end if
  98. end startMovie
  99.  
  100. on LoadEmUp
  101.   global gMoney, gIntegrity, gDayOfTheWeek, gDayOrNight, gOneOrTwo,gSuccessRate,¼
  102.  g19A, g18A,g01A,g11A,g02A, g15A, g13A, g06A,g09A, g08A, g05A, g03A, g25A, g22A, ¼
  103.   gMags, Player1, Player2, Player3, Player4, Player5, Player6, gCurrentPlayer,¼
  104.  gTheDay, whichPlayer, conglomo, InvitedOrNot
  105.   
  106.   set gMoney = the value of line 2 of WhichPlayer
  107.   set gIntegrity = the value of line 3 of WhichPlayer
  108.   set gDayOfTheWeek = the value of line 4 of WhichPlayer
  109.   set gDayOrNight = line 5 of WhichPlayer
  110.   set gOneOrTwo = the value of line 6 of WhichPlayer
  111.   set gSuccessRate = the value of line 7 of WhichPlayer
  112.   set g19A = item 1 of line 8 of WhichPlayer
  113.   set g18A = item 2 of line 8 of WhichPlayer
  114.   set g01A = item 3 of line 8 of WhichPlayer
  115.   set g11A = item 4 of line 8 of WhichPlayer
  116.   set g02A = item 5 of line 8 of WhichPlayer
  117.   set g15A = item 6 of line 8 of WhichPlayer
  118.   set g13A = item 7 of line 8 of WhichPlayer
  119.   set g06A = item 8 of line 8 of WhichPlayer
  120.   set g09A = item 9 of line 8 of WhichPlayer
  121.   set g08A = item 10 of line 8 of WhichPlayer
  122.   set g05A = item 11 of line 8 of WhichPlayer
  123.   set g03A = item 12 of line 8 of WhichPlayer
  124.   set g25A = item 13 of line 8 of WhichPlayer
  125.   set g22A = item 14 of line 8 of WhichPlayer
  126.   set conglomo = line 13 of whichPlayer
  127.   set InvitedOrNot = line 14 of whichplayer
  128.   WhatDayIsIt
  129. end LoadEmUp
  130.  
  131. on WhatDayIsIt
  132.   global gMoney, gIntegrity, gDayOfTheWeek, gDayOrNight, gOneOrTwo, gTheDay
  133.   
  134.   put gDayOfTheWeek & gDayOrNight into gTheDay
  135. end WhatDayIsIt
  136.  
  137. on LoadNPlay movieNframeName
  138.   global movieNframeName
  139.   puppetsound "button.aif"
  140.   go frame movieNframeName
  141. end
  142.  
  143. on TVLoad
  144.   global theTVName
  145.   puppetsound 0
  146. end TVLoad
  147.  
  148.  
  149. on hiliter spriteNum, castName, castNameHL
  150.   repeat while the mousedown
  151.     if rollover(spriteNum) then
  152.       set the castNum of sprite spriteNum = cast castNameHL
  153.       updatestage
  154.     else
  155.       set the castNum of sprite spriteNum = cast castName
  156.       updatestage
  157.       exit
  158.     end if
  159.   end repeat
  160. end
  161.  
  162. on turnOnDollars
  163.   repeat with i = 14 to 21
  164.     puppetSprite i, true
  165.   end repeat
  166. end turnOnDollars
  167.  
  168. on turnOffDollars
  169.   repeat with i = 14 to 21
  170.     puppetSprite i, false
  171.   end repeat
  172. end turnOffDollars
  173.  
  174. on turnOnDollarsGO
  175.   repeat with i = 34 to 44
  176.     puppetSprite i, true
  177.   end repeat
  178. end turnOnDollarsGO
  179.  
  180. on turnOffDollarsGO
  181.   repeat with i = 34 to 44
  182.     puppetSprite i, false
  183.   end repeat
  184. end turnOffDollarsGO
  185.  
  186. on turnOnBuyers
  187.   repeat with i = 33 to 37
  188.     puppetSprite i, true
  189.   end repeat
  190. end turnOnBuyers
  191.  
  192. on turnOffBuyers
  193.   repeat with i = 33 to 37
  194.     puppetSprite i, false
  195.   end repeat
  196. end turnOffBuyers
  197.  
  198.  
  199.  
  200. on WriteUpdatedInfo
  201.   global Player1, Player2, Player3, Player4, Player5, Player6,¼
  202.  gCurrentPlayer, gThePath, UpDatedPlayer, textTemp1, fileIO,¼
  203.  WhichPlayer, HDPathName, CDorHD
  204.   
  205.   UpDatePlayerData 
  206.   
  207.   if value(gCurrentPlayer) = 1 then put "APlayer1.txt" into TheDoc
  208.   if value(gCurrentPlayer) = 2 then put "APlayer2.txt" into TheDoc
  209.   if value(gCurrentPlayer) = 3 then put "APLAYER3.txt" into TheDoc
  210.   if value(gCurrentPlayer) = 4 then put "APLAYER4.txt" into TheDoc
  211.   if value(gCurrentPlayer) = 5 then put "APLAYER5.txt" into TheDoc
  212.   if value(gCurrentPlayer) = 6 then put "APLAYER6.txt" into TheDoc
  213.   
  214.   -- writes the updated player data to the current player's text file
  215.   if CDorHD = "yes" then
  216.     
  217.     if objectP(textTemp1) then textTemp1(mDispose)
  218.     set textTemp1 = FileIO(mNew, "write", HDPathName & TheDoc)
  219.     textTemp1(mWriteString, string(UpDatedPlayer))
  220.     textTemp1(mSetFinderInfo, "TEXT", "MSWD")    
  221.     textTemp1(mDispose)
  222.     
  223.   else
  224.     if objectP(textTemp1) then textTemp1(mDispose)
  225.     set textTemp1 = FileIO(mNew, "write", the pathName & TheDoc)
  226.     textTemp1(mWriteString, string(UpDatedPlayer))
  227.     textTemp1(mSetFinderInfo, "TEXT", "MSWD")    
  228.     textTemp1(mDispose)
  229.   end if
  230.   
  231.   --updates the current player's global
  232.   if value(gCurrentPlayer) = 1 then set Player1 = WhichPlayer
  233.   if value(gCurrentPlayer) = 2 then set Player2 = WhichPlayer
  234.   if value(gCurrentPlayer) = 3 then set Player3 = WhichPlayer
  235.   if value(gCurrentPlayer) = 4 then set Player4 = WhichPlayer
  236.   if value(gCurrentPlayer) = 5 then set Player5 = WhichPlayer
  237.   if value(gCurrentPlayer) = 6 then set Player6 = WhichPlayer
  238.   
  239. end WriteUpdatedInfo 
  240.  
  241. on UpDatePlayerData
  242.   global gMoney, gIntegrity, gDayOfTheWeek, gDayOrNight, gOneOrTwo,gSuccessRate,¼
  243. g19A, g18A,g01A,g11A,g02A, g15A, g13A, g06A,g09A, g08A, g05A, g03A, g25A, g22A,¼
  244.   gMags, UpDatedPlayer, WhichPlayer, conglomo, InvitedOrNot, gTheDay
  245.   
  246.   put gMoney into line 2 of WhichPlayer
  247.   put gIntegrity into line 3 of WhichPlayer
  248.   put gDayOfTheWeek into line 4 of WhichPlayer
  249.   put gDayOrNight into line 5 of WhichPlayer
  250.   put gOneOrTwo into line 6 of WhichPlayer
  251.   put gSuccessRate into line 7 of WhichPlayer
  252.   put gMoney into line 2 of WhichPlayer
  253.   put g19A into item 1 of line 8 of WhichPlayer
  254.   put g18A into item 2 of line 8 of WhichPlayer
  255.   put g01A into item 3 of line 8 of WhichPlayer
  256.   put g11A into item 4 of line 8 of WhichPlayer
  257.   put g02A into item 5 of line 8 of WhichPlayer
  258.   put g15A into item 6 of line 8 of WhichPlayer
  259.   put g13A into item 7 of line 8 of WhichPlayer
  260.   put g06A into item 8 of line 8 of WhichPlayer
  261.   put g09A into item 9 of line 8 of WhichPlayer
  262.   put g08A into item 10 of line 8 of WhichPlayer
  263.   put g05A into item 11 of line 8 of WhichPlayer
  264.   put g03A into item 12 of line 8 of WhichPlayer
  265.   put g25A into item 13 of line 8 of WhichPlayer
  266.   put g22A into item 14 of line 8 of WhichPlayer
  267.   put "OptDay" & gDayOfTheWeek into line 12 of whichplayer 
  268.   put conglomo into line 13 of whichPlayer
  269.   put InvitedOrNot into line 14 of whichplayer
  270.   
  271.   if gTheDay = "14N" and gOneOrTwo = 2 then
  272.     put "OptRetired" into line 12 of whichplayer 
  273.   else
  274.     put "OptDay" & gDayOfTheWeek into line 12 of whichplayer 
  275.   end if
  276.   
  277.   set UpDatedPlayer = WhichPlayer
  278.   
  279. end UpDatePlayerData
  280.  
  281. on calculateMoney
  282.   global gMoney
  283.   
  284.   set MoneyHolder = ",,,,,,,"
  285.   set CharTemp = the length of string(gmoney)
  286.   
  287.   set theDif = 7 - CharTemp
  288.   
  289.   repeat with i = CharTemp down to 1
  290.     put char i of string(gMoney) into item i + TheDif of MoneyHolder
  291.   end repeat
  292.   
  293.   set y = 0
  294.   
  295.   repeat with x = 14 to 20
  296.     set y = y + 1
  297.     if item y of MoneyHolder = "" then set the castNum of sprite x to cast "Mblank"
  298.     if item y of MoneyHolder = "-" then set the castNum of sprite x to cast "Mminus"
  299.     if item y of MoneyHolder = "0" then set the castNum of sprite x to cast "M0"
  300.     if item y of MoneyHolder = "1" then set the castNum of sprite x to cast "M1"
  301.     if item y of MoneyHolder = "2" then set the castNum of sprite x to cast "M2"
  302.     if item y of MoneyHolder = "3" then set the castNum of sprite x to cast "M3"
  303.     if item y of MoneyHolder = "4" then set the castNum of sprite x to cast "M4"
  304.     if item y of MoneyHolder = "5" then set the castNum of sprite x to cast "M5"
  305.     if item y of MoneyHolder = "6" then set the castNum of sprite x to cast "M6"
  306.     if item y of MoneyHolder = "7" then set the castNum of sprite x to cast "M7"
  307.     if item y of MoneyHolder = "8" then set the castNum of sprite x to cast "M8"
  308.     if item y of MoneyHolder = "9" then set the castNum of sprite x to cast "M9"
  309.   end repeat
  310.   updateStage
  311.   
  312. end calulateMoney
  313.  
  314. on integrameter
  315.   global gIntegrity
  316.   if gIntegrity >= 89 then set the castNum of sprite 21 to cast "ed himself"
  317.   if gIntegrity >= 79 and gIntegrity <= 88 then set the castNum of sprite 21 to cast "Angel"
  318.   if gIntegrity >= 69 and gIntegrity <= 78 then set the castNum of sprite 21 to cast "Priest"
  319.   if gIntegrity >= 59 and gIntegrity <= 68 then set¼
  320.  the castNum of sprite 21 to cast "Canadian Mounty"
  321.   if gIntegrity >= 49 and gIntegrity <= 58 then set the castNum of sprite 21 to cast "Person Scout"
  322.   if gIntegrity >= 39 and gIntegrity <= 48 then set the castNum of sprite 21 to cast "Honorable"
  323.   if gIntegrity >= 29 and gIntegrity <= 38 then set the castNum of sprite 21 to cast "Friendly"
  324.   if gIntegrity >= 19 and gIntegrity <= 28 then set the castNum of sprite 21 to cast "Courteous"
  325.   if gIntegrity >= 9 and gIntegrity <= 18 then set the castNum of sprite 21 to cast "Basically Nice"
  326.   if gIntegrity >= -1 and gIntegrity <= 8 then set the castNum of sprite 21 to cast "Law Abiding"
  327.   if gIntegrity >= -11 and gIntegrity <= -2 then set the castNum of sprite 21 to cast "Decent"
  328.   if gIntegrity >= -21 and gIntegrity <= -12 then set the castNum of sprite 21 to cast "Average"
  329.   if gIntegrity >= -31 and gIntegrity <= -22 then set¼
  330.  the castNum of sprite 21 to cast "All Too Human"
  331.   if gIntegrity >= -41 and gIntegrity <= -32 then set the castNum of sprite 21 to cast "Fallible"
  332.   if gIntegrity >= -51 and gIntegrity <= -42 then set the castNum of sprite 21 to cast "Sneaky"
  333.   if gIntegrity >= -61 and gIntegrity <= -52 then set¼
  334.  the castNum of sprite 21 to cast "Troublemaker"
  335.   if gIntegrity >= -71 and gIntegrity <= -62 then set the castNum of sprite 21 to cast "Peeping Tom"
  336.   if gIntegrity >= -81 and gIntegrity <= -72 then set the castNum of sprite 21 to cast "Shifty"
  337.   if gIntegrity >= -91 and gIntegrity <= -82 then set the castNum of sprite 21 to cast "Jerk"
  338.   if gIntegrity >= -101 and gIntegrity <= -92 then set the castNum of sprite 21 to cast "Hoodlum"
  339.   if gIntegrity >= -111 and gIntegrity <= -102 then set the castNum of sprite 21 to cast "Rat"
  340.   if gIntegrity >= -121 and gIntegrity <= -112 then set the castNum of sprite 21 to cast "Liar"
  341.   if gIntegrity >= -131 and gIntegrity <= -122 then set the castNum of sprite 21 to cast "Sludge"
  342.   if gIntegrity >= -141 and gIntegrity <= -132 then set the castNum of sprite 21 to cast "Leech"
  343.   if gIntegrity >= -151 and gIntegrity <= -142 then set¼
  344.  the castNum of sprite 21 to cast "Scumsucker"
  345.   if gIntegrity >= -161 and gIntegrity <= -152 then set¼
  346.  the castNum of sprite 21 to cast "Satan himself"
  347.   if gIntegrity <= -162 then set¼
  348.  the castNum of sprite 21 to cast "Paparazzi"
  349.   updatestage
  350. end integrameter
  351.  
  352. on calculateMoneyGO
  353.   global gMoney
  354.   
  355.   set MoneyHolder = ",,,,,,,"
  356.   set CharTemp = the length of string(gmoney)
  357.   
  358.   set theDif = 7 - CharTemp
  359.   
  360.   repeat with i = CharTemp down to 1
  361.     put char i of string(gMoney) into item i + TheDif of MoneyHolder
  362.   end repeat
  363.   
  364.   set y = 0
  365.   
  366.   repeat with x = 37 to 43
  367.     set y = y + 1
  368.     if item y of MoneyHolder = "" then set the castNum of sprite x to cast "Mblank"
  369.     if item y of MoneyHolder = "-" then set the castNum of sprite x to cast "Mminus"
  370.     if item y of MoneyHolder = "0" then set the castNum of sprite x to cast "M0"
  371.     if item y of MoneyHolder = "1" then set the castNum of sprite x to cast "M1"
  372.     if item y of MoneyHolder = "2" then set the castNum of sprite x to cast "M2"
  373.     if item y of MoneyHolder = "3" then set the castNum of sprite x to cast "M3"
  374.     if item y of MoneyHolder = "4" then set the castNum of sprite x to cast "M4"
  375.     if item y of MoneyHolder = "5" then set the castNum of sprite x to cast "M5"
  376.     if item y of MoneyHolder = "6" then set the castNum of sprite x to cast "M6"
  377.     if item y of MoneyHolder = "7" then set the castNum of sprite x to cast "M7"
  378.     if item y of MoneyHolder = "8" then set the castNum of sprite x to cast "M8"
  379.     if item y of MoneyHolder = "9" then set the castNum of sprite x to cast "M9"
  380.   end repeat
  381.   updateStage
  382.   
  383. end calulateMoneyGO
  384.  
  385. on integrameterGO
  386.   global gIntegrity
  387.   if gIntegrity >= 89 then set the castNum of sprite 44 to cast "ed himself"
  388.   if gIntegrity >= 79 and gIntegrity <= 88 then set the castNum of sprite 44 to cast "Angel"
  389.   if gIntegrity >= 69 and gIntegrity <= 78 then set the castNum of sprite 44 to cast "Priest"
  390.   if gIntegrity >= 59 and gIntegrity <= 68 then set¼
  391.  the castNum of sprite 44 to cast "Canadian Mounty"
  392.   if gIntegrity >= 49 and gIntegrity <= 58 then set the castNum of sprite 44 to cast "Person Scout"
  393.   if gIntegrity >= 39 and gIntegrity <= 48 then set the castNum of sprite 44 to cast "Honorable"
  394.   if gIntegrity >= 29 and gIntegrity <= 38 then set the castNum of sprite 44 to cast "Friendly"
  395.   if gIntegrity >= 19 and gIntegrity <= 28 then set the castNum of sprite 44 to cast "Courteous"
  396.   if gIntegrity >= 9 and gIntegrity <= 18 then set the castNum of sprite 44 to cast "Basically Nice"
  397.   if gIntegrity >= -1 and gIntegrity <= 8 then set the castNum of sprite 44 to cast "Law Abiding"
  398.   if gIntegrity >= -11 and gIntegrity <= -2 then set the castNum of sprite 44 to cast "Decent"
  399.   if gIntegrity >= -21 and gIntegrity <= -12 then set the castNum of sprite 44 to cast "Average"
  400.   if gIntegrity >= -31 and gIntegrity <= -22 then set¼
  401.  the castNum of sprite 44 to cast "All Too Human"
  402.   if gIntegrity >= -41 and gIntegrity <= -32 then set the castNum of sprite 44 to cast "Fallible"
  403.   if gIntegrity >= -51 and gIntegrity <= -42 then set the castNum of sprite 44 to cast "Sneaky"
  404.   if gIntegrity >= -61 and gIntegrity <= -52 then set¼
  405.  the castNum of sprite 44 to cast "Troublemaker"
  406.   if gIntegrity >= -71 and gIntegrity <= -62 then set the castNum of sprite 44 to cast "Peeping Tom"
  407.   if gIntegrity >= -81 and gIntegrity <= -72 then set the castNum of sprite 44 to cast "Shifty"
  408.   if gIntegrity >= -91 and gIntegrity <= -82 then set the castNum of sprite 44 to cast "Jerk"
  409.   if gIntegrity >= -101 and gIntegrity <= -92 then set the castNum of sprite 44 to cast "Hoodlum"
  410.   if gIntegrity >= -111 and gIntegrity <= -102 then set the castNum of sprite 44 to cast "Rat"
  411.   if gIntegrity >= -121 and gIntegrity <= -112 then set the castNum of sprite 44 to cast "Liar"
  412.   if gIntegrity >= -131 and gIntegrity <= -122 then set the castNum of sprite 44 to cast "Sludge"
  413.   if gIntegrity >= -141 and gIntegrity <= -132 then set the castNum of sprite 44 to cast "Leech"
  414.   if gIntegrity >= -151 and gIntegrity <= -142 then set¼
  415.  the castNum of sprite 44 to cast "Scumsucker"
  416.   if gIntegrity >= -161 and gIntegrity <= -152 then set¼
  417.  the castNum of sprite 44 to cast "Satan himself"
  418.   if gIntegrity <= -162 then set¼
  419.  the castNum of sprite 44 to cast "Paparazzi"
  420.   updatestage
  421. end integrameterGO
  422.  
  423. on richOrPoor
  424.   global gmoney, howRich
  425.   if gMoney <= 0 then set howRich = "Feet"
  426.   if gMoney >= 1 and gmoney <= 2500 then set howRich = "olds"
  427.   if gMoney >= 2501 and gmoney <= 10000 then set howRich = "celica"
  428.   if gMoney >= 10001 and gmoney <= 50000 then set howRich = "jeep"
  429.   if gMoney >= 50001 then set howRich = "A3000"
  430.   go frame "Travel"
  431. end richOrPoor
  432.  
  433. on getItOrNot
  434.   global gTheShot, whichBuyer, payoffStart, payoffEnd, gConditional, gTheDay
  435.   
  436.   whatDayIsIt
  437.   if whichBuyer = "SkippyPayCont" then 
  438.     go frame "SkippyPayCont"
  439.     exit
  440.   end if
  441.   if whichBuyer = "NoBuyers" then 
  442.     go frame gTheDay & "NoBuyers"
  443.     exit
  444.   end if
  445.   if gTheShot >= payoffStart and gTheShot <= payoffEnd then --You Got It!
  446.     go frame whichBuyer
  447.   else
  448.     go frame gTheDay & "NoBuyers"  --you missed it
  449.   end if
  450. end getItOrNot
  451.  
  452. on getItOrNotVIRGIN
  453.   global gTheShot, whichBuyer, payoffStart1, payoffEnd1, gConditional, gTheDay,¼
  454.  payoffStart2, payoffEnd2, whichBuyer1, whichBuyer2
  455.   
  456.   whatDayIsIt
  457.   
  458.   if gTheShot >= payoffStart1 and gTheShot <= payoffEnd1 then --You Got Tit!
  459.     go frame whichBuyer1
  460.   else
  461.     if gTheShot >= payoffStart2 and gTheShot <= payoffEnd2 then --You Got Wig!
  462.       go frame whichBuyer2
  463.     else
  464.       go frame gTheDay & "NoBuyers"  --you missed it
  465.     end if
  466.   end if
  467. end getItOrNotVIRGIN
  468.  
  469. on optionsON
  470.   repeat with q = 9 to 28
  471.     puppetsprite q, true
  472.   end repeat
  473.   updatestage
  474. end optionsON
  475.  
  476. on optionsOFF
  477.   repeat with q = 9 to 28
  478.     puppetsprite q, false
  479.   end repeat
  480.   updatestage
  481. end optionsOFF
  482.  
  483. on writeCurrentPlayer
  484.   global gCurrentPlayer, FileIO, textTemp1, whichPlayer,¼
  485. player1, player2, player3, player4, player5, player6, gThePath,¼
  486.  HDPathName, CDorHD
  487.   
  488.   if CDorHD = "yes" then
  489.     
  490.     if objectP(textTemp1) then textTemp1(mDispose)
  491.     set textTemp1 = FileIO(mNew, "write", HDPathName & "ACurPlyr.txt")
  492.     textTemp1(mWriteString, string(gCurrentPlayer))
  493.     textTemp1(mSetFinderInfo, "TEXT", "MSWD")    
  494.     textTemp1(mDispose)
  495.   else
  496.     if objectP(textTemp1) then textTemp1(mDispose)
  497.     set textTemp1 = FileIO(mNew, "write", the PathName & "ACurPlyr.txt")
  498.     textTemp1(mWriteString, string(gCurrentPlayer))
  499.     textTemp1(mSetFinderInfo, "TEXT", "MSWD")    
  500.     textTemp1(mDispose)
  501.   end if
  502.   
  503.   if value(gCurrentPlayer) = 1 then set WhichPlayer = Player1
  504.   if value(gCurrentPlayer) = 2 then set WhichPlayer = Player2
  505.   if value(gCurrentPlayer) = 3 then set WhichPlayer = Player3
  506.   if value(gCurrentPlayer) = 4 then set WhichPlayer = Player4
  507.   if value(gCurrentPlayer) = 5 then set WhichPlayer = Player5
  508.   if value(gCurrentPlayer) = 6 then set WhichPlayer = Player6
  509.   
  510.   LoadEmUp
  511.   
  512. end writeCurrentPlayer
  513.  
  514. on resurectMe
  515.   global gCurrentPlayer, FileIO, textTemp1, whichPlayer,¼
  516. player1, player2, player3, player4, player5, player6, gThePath,¼
  517.  theDoc, HDPathName, CDorHD
  518.   
  519.   if CDorHD = "yes" then
  520.     if objectP(textTemp1) then textTemp1(mDispose)
  521.     set textTemp1 = FileIO(mNew, "write", HDPathName & theDoc)
  522.     textTemp1(mWriteString, string(whichPlayer))
  523.     textTemp1(mSetFinderInfo, "TEXT", "MSWD")    
  524.     textTemp1(mDispose)
  525.   else
  526.     if objectP(textTemp1) then textTemp1(mDispose)
  527.     set textTemp1 = FileIO(mNew, "write", the pathName & theDoc)
  528.     textTemp1(mWriteString, string(whichPlayer))
  529.     textTemp1(mSetFinderInfo, "TEXT", "MSWD")    
  530.     textTemp1(mDispose)
  531.   end if
  532.   
  533. end resurectMe
  534.  
  535. on whatsMyName a, b, c, spriteNum
  536.   global whichplayer
  537.   
  538.   if line 10 of whichPlayer = a then 
  539.     put b into line 10 of whichPlayer
  540.     set the castNum of sprite spriteNum to cast b
  541.     updatestage
  542.     exit
  543.   end if
  544.   
  545.   if line 10 of whichPlayer = b then 
  546.     put c into line 10 of whichPlayer
  547.     set the castNum of sprite spriteNum to cast c
  548.     updatestage
  549.     exit
  550.   end if
  551.   
  552.   if line 10 of whichPlayer = c then 
  553.     put a into line 10 of whichPlayer
  554.     set the castNum of sprite spriteNum to cast a
  555.     updatestage
  556.     exit
  557.   end if
  558. end whatsMyName
  559.  
  560. on WipeConditionals
  561.   global motel, mall, fug, cheevers, hotel, court, cclub, lingo,¼
  562.   sigis, markit, rosy, alley, park, tv1, tv2, tv3, tv4, tv5, tv6, ¼
  563.   calls
  564.   --clears all the conditionals at trans time
  565.   --fresh start for each section
  566.   put "" into motel
  567.   put "" into mall
  568.   put "" into fug
  569.   put "" into cheevers
  570.   put "" into hotel
  571.   put "" into court
  572.   put "" into cclub
  573.   put "" into lingo
  574.   put "" into sigis
  575.   put "" into markit
  576.   put "" into rosy
  577.   put "" into alley
  578.   put "" into park
  579.   put "" into tv1
  580.   put "" into tv2
  581.   put "" into tv3
  582.   put "" into tv4
  583.   put "" into tv5
  584.   put "" into tv6
  585.   put "" into calls
  586.   
  587. end WipeConditionals
  588.  
  589. on turnOnDaycons
  590.   repeat with d = 28 to 31
  591.     puppetsprite d, true
  592.   end repeat
  593. end turnOnDaycons
  594.  
  595. on turnOffDaycons
  596.   repeat with d = 28 to 31
  597.     puppetsprite d, false
  598.   end repeat
  599. end turnOffDaycons
  600.  
  601. on GameContinue
  602.   global gCondition, gCurrentPlayer, whichPlayer, gDayOfTheWeek,¼
  603.  gDayOrNight, gOneOrTwo, gTheDay, gTheCDPath, TheMast, g19A,¼
  604.  gsuccessRate, theMovieName, fug, alley, HDPathName
  605.   
  606.   unloadCast theMovieName
  607.   turnOffDollars
  608.   turnOffDaycons
  609.   puppetSprite 3, false
  610.   puppetsprite 48, false
  611.   set the castNum of sprite 23 to cast "ContinueBTN"
  612.   updatestage
  613.   sound Playfile 1, HDPathName & "part3.aif"
  614.   
  615.   if gDayOrNight = "D"  and  gOneOrTwo = 1 then
  616.     set gOneOrTwo = 2
  617.     --write out the updated player info
  618.     WriteUpdatedInfo
  619.     whatDayIsIt
  620.     CheckTheCDResume
  621.     exit
  622.   end if
  623.   
  624.   if gDayOrNight = "N"  and  gOneOrTwo = 1 then
  625.     set gOneOrTwo = 2
  626.     --write out the updated player info
  627.     WriteUpdatedInfo
  628.     whatDayIsIt
  629.     CheckTheCDResume
  630.     exit
  631.   end if
  632.   
  633.   
  634.   if gDayOrNight = "D"  and  gOneOrTwo = 2 then
  635.     set gDayOrNight = "N"
  636.     set gOneOrTwo = 1
  637.     --write out the updated player info
  638.     WriteUpdatedInfo
  639.     whatDayIsIt
  640.     CheckTheCD
  641.     exit
  642.   end if
  643.   
  644.   if gDayOrNight = "N"  and  gOneOrTwo = 2 then
  645.     if gDayOfTheWeek = 14 then --end the game properly
  646.       WriteUpDatedInfo
  647.       turnOffDollars
  648.       Go frame "EOG"
  649.       exit
  650.     end if
  651.     set gDayOfTheWeek = gDayOfTheWeek + 1
  652.     set gDayOrNight = "D"
  653.     set gOneOrTwo = 1
  654.     --write out the updated player info
  655.     WriteUpdatedInfo
  656.     whatDayIsIt
  657.     turnOffdollars
  658.     CheckTheCD
  659.     exit
  660.   end if
  661.   
  662. end GameContinue 
  663.  
  664.  
  665. on AcceptIt
  666.   global gMoneyTemp, gMoney, gIntegrity, gIntegrityTemp
  667.   set the castNum of sprite 25 = cast "Accept"
  668.   updatestage
  669.   set gMoney = gMoney + gMoneyTemp
  670.   set gIntegrity = gIntegrity + gIntegrityTemp
  671.   puppetsound "chaching.aif"
  672.   calculateMoney
  673.   integrameter
  674.   turnOffBuyers
  675. end AcceptIt
  676.  
  677. on ResetMe
  678.   global gTheDay, gCurrentPlayer, whichPlayer, player1, player2,¼
  679. player3, player4, player5, player6, theDoc
  680.   
  681.   if the clickON = 9 then 
  682.     set gCurrentPlayer = 1
  683.     set theCurrentName = line 10 of player1
  684.     set whichPlayer = the text of cast "player1"
  685.     put theCurrentName into line 10 of whichPlayer
  686.     put "Esmaralda" into a
  687.     put "Josephine" into b
  688.     put "Etta" into c
  689.     put 16 into spriteNum
  690.     WhatsMyName a, b, c, spriteNum
  691.     put "Fem1" into line 11 of whichplayer
  692.     set player1 = whichplayer
  693.     set theDoc = "APlayer1.txt"
  694.     resurectMe
  695.     set the castNum of sprite 9 to cast "Fem1"
  696.     set the castNum of sprite 23 to cast "optionsBlank"
  697.     puppetsound 0
  698.     updatestage
  699.     exit
  700.   end if
  701.   
  702.   if the clickON = 10 then 
  703.     set gCurrentPlayer = 2
  704.     set theCurrentName = line 10 of player2
  705.     set whichPlayer = the text of cast "player2"
  706.     put theCurrentName into line 10 of whichPlayer
  707.     put "Zoe" into a
  708.     put "Chloe" into b
  709.     put "Fifi" into c
  710.     put 17 into spriteNum
  711.     WhatsMyName a, b, c, spriteNum
  712.     put "Fem2" into line 11 of whichplayer
  713.     set player2 = whichplayer
  714.     set theDoc = "APlayer2.txt"
  715.     resurectMe
  716.     set the castNum of sprite 10 to cast "Fem2"
  717.     set the castNum of sprite 24 to cast "optionsBlank"
  718.     puppetsound 0
  719.     updatestage
  720.     exit
  721.   end if
  722.   
  723.   if the clickON = 11 then 
  724.     set gCurrentPlayer = 3
  725.     set theCurrentName = line 10 of player3
  726.     set whichPlayer = the text of cast "player3"
  727.     put theCurrentName into line 10 of whichPlayer
  728.     put "Hilary" into a
  729.     put "Tara" into b
  730.     put "Jo" into c
  731.     put 18 into spriteNum
  732.     WhatsMyName a, b, c, spriteNum
  733.     put "Fem3" into line 11 of whichplayer
  734.     set player3 = whichplayer
  735.     set theDoc = "APlayer3.txt"
  736.     resurectMe whichplayer, theDoc
  737.     set the castNum of sprite 11 to cast "Fem3"
  738.     set the castNum of sprite 25 to cast "optionsBlank"
  739.     puppetsound 0
  740.     updatestage
  741.     exit
  742.   end if
  743.   
  744.   if the clickON = 12 then 
  745.     set gCurrentPlayer = 4
  746.     set theCurrentName = line 10 of player4
  747.     set whichPlayer = the text of cast "player4"
  748.     put theCurrentName into line 10 of whichPlayer
  749.     put "Biff" into a
  750.     put "Dudley" into b
  751.     put "Clancy" into c
  752.     put 19 into spriteNum
  753.     WhatsMyName a, b, c, spriteNum
  754.     put "Male1" into line 11 of whichplayer
  755.     set player4 = whichplayer
  756.     set theDoc = "APlayer4.txt"
  757.     resurectMe
  758.     set the castNum of sprite 12 to cast "Male1"
  759.     set the castNum of sprite 26 to cast "optionsBlank"
  760.     puppetsound 0
  761.     updatestage
  762.     exit
  763.   end if
  764.   
  765.   if the clickON = 13 then 
  766.     set gCurrentPlayer = 5
  767.     set theCurrentName = line 10 of player5
  768.     set whichPlayer = the text of cast "player5"
  769.     put theCurrentName into line 10 of whichPlayer
  770.     put "Luciano" into a
  771.     put "Marcello" into b
  772.     put "Antonio" into c
  773.     put 20 into spriteNum
  774.     WhatsMyName a, b, c, spriteNum
  775.     put "Male2" into line 11 of whichplayer
  776.     set player5 = whichplayer
  777.     set theDoc = "APlayer5.txt"
  778.     resurectMe
  779.     set the castNum of sprite 13 to cast "Male2"
  780.     set the castNum of sprite 27 to cast "optionsBlank"
  781.     puppetsound 0
  782.     updatestage
  783.     exit
  784.   end if
  785.   
  786.   if the clickON = 14 then 
  787.     set gCurrentPlayer = 6
  788.     set theCurrentName = line 10 of player6
  789.     set whichPlayer = the text of cast "player6"
  790.     put theCurrentName into line 10 of whichPlayer
  791.     put "Ratso" into a
  792.     put "Aaron" into b
  793.     put "Slick" into c
  794.     put 21 into spriteNum
  795.     WhatsMyName a, b, c, spriteNum
  796.     put "Male3" into line 11 of whichplayer
  797.     set player6 = whichplayer
  798.     set theDoc = "APlayer6.txt"
  799.     resurectMe
  800.     set the castNum of sprite 14 to cast "Male3"
  801.     set the castNum of sprite 28 to cast "optionsBlank"
  802.     puppetsound 0
  803.     updatestage
  804.     exit
  805.   end if
  806.   
  807.   updatestage
  808. end ResetMe
  809.  
  810. on CheckTheCD
  811.   global gDayOfTheWeek, gTheDay,ThePapMovie1, ThePapMovie2, TheDrivePath, HDPathName
  812.   
  813.   put getNthFileNameInFolder(TheDrivePath & ":\Assets", 1) into CD1
  814.   put getNthFileNameInFolder(TheDrivePath & ":\Assets", 1) into CD2
  815.   
  816.   if gDayOfTheWeek <= 8 then -- player is at first week i.e. days 1-8
  817.     if (CD1 = "A01.TXT") then -- and the first CD is in
  818.       if the movie = "PPraziA1.dir" then -- and if the current movie name is this movie
  819.         go frame gTheDay & "trans" -- go to the proper day's transition screen
  820.         exit
  821.       else
  822.         go frame "ThinkingTrans" of movie HDPathName & "PPraziA1.dir" -- go to the 1st movie
  823.         exit
  824.       end if
  825.     else -- if CD1 isn't in the drive
  826.       go frame "AskForCD1" of movie HDpathname & "PapHelp.Dir"
  827.       exit
  828.     end if
  829.   else -- if the player is on the second week i.e. days 9-14
  830.     if (CD2 = "A02.TXT") then -- and the second CD is in
  831.       if the movie = "PPraziA2.dir" then -- and if the current movie name is this movie
  832.         go frame gTheDay & "trans" -- go to the proper day's transition screen
  833.         exit
  834.       else
  835.         go frame "ThinkingTrans" of movie HDPathName & "PPraziA2.dir" -- go to the 2nd movie
  836.         exit
  837.       end if
  838.     else -- if CD2 isn't in the drive
  839.       go frame "AskForCD2" of movie HDpathname & "PapHelp.Dir"
  840.       exit
  841.     end if
  842.   end if
  843. end CheckTheCD
  844.  
  845. on CheckTheCDResume
  846.   global gDayOfTheWeek, gTheDay,ThePapMovie1, ThePapMovie2, TheDrivePath, HDPathName
  847.   
  848.   put getNthFileNameInFolder(TheDrivePath & ":\Assets", 1) into CD1
  849.   put getNthFileNameInFolder(TheDrivePath & ":\Assets", 1) into CD2
  850.   
  851.   if gDayOfTheWeek <= 8 then -- player is at first week i.e. days 1-8
  852.     if (CD1 = "A01.TXT") then -- and the first CD is in
  853.       if the movie = "PPraziA1.dir" then -- and if the current movie name is this movie
  854.         go frame gTheDay & "idle" -- go to the proper day's transition screen
  855.         exit
  856.       else
  857.         go frame "ThinkingIdle" of movie HDPathName & "PPraziA1.dir" -- go to the 1st movie
  858.         exit
  859.       end if
  860.     else -- if CD1 isn't in the drive
  861.       go frame "AskForCD1" of movie HDpathname & "PapHelp.Dir"
  862.       exit
  863.     end if
  864.   else -- if the player is on the second week i.e. days 9-14
  865.     if (CD2 = "A02.TXT") then -- and the second CD is in
  866.       if the movie = "PPraziA2.dir" then -- and if the current movie name is this movie
  867.         go frame gTheDay & "idle" -- go to the proper day's transition screen
  868.         exit
  869.       else
  870.         go frame "ThinkingIdle" of movie HDPathName & "PPraziA2.dir" -- go to the 2nd movie
  871.         exit
  872.       end if
  873.     else -- if CD2 isn't in the drive
  874.       go frame "AskForCD2" of movie HDpathname & "PapHelp.Dir"
  875.       exit
  876.     end if
  877.   end if
  878. end CheckTheCDResume